package com.wochoose.ucm;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableSwagger2
//启用事务管理器，等同于xml配置方式的<tx:annotation=driven />
@EnableTransactionManagement
@MapperScan(basePackages = { "com.wochoose.ucm.mapper" })
@EnableCaching
public class UserCenterApp {
	/**
	 * 启动入口，运行此 main 方法可以启动项目，此 main 方法可以放置在任意的 Class 类定义中，不一定要放于此
	 */
	public static void main(String[] args) {
		SpringApplication.run(com.wochoose.ucm.UserCenterApp.class, args);
	}
}